package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:27 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceBuildLog implements java.io.Serializable {

  public WorkspaceBuildLog() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long workspaceBuildConfigId;

  /** Attribute workspaceBuildConfigId Be Seted Falg */
  private boolean workspaceBuildConfigIdSetted = false;

  /** Attribute workspaceBuildConfigId is Null Falg */
  private boolean workspaceBuildConfigIdNull = false;

  /**
   * Get workspaceBuildConfigId
   *
   * @return long
   */
  public final long getWorkspaceBuildConfigId() {

    return workspaceBuildConfigId;
  }

  /**
   * Set workspaceBuildConfigId
   *
   * @param long
   */
  public final void setWorkspaceBuildConfigId(long workspaceBuildConfigId) {

    this.workspaceBuildConfigId = workspaceBuildConfigId;

    this.workspaceBuildConfigIdSetted = true;

    this.setWorkspaceBuildConfigIdNull(false);
  }

  /**
   * Get workspaceBuildConfigId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceBuildConfigIdSetted() {
    return this.workspaceBuildConfigIdSetted;
  }

  /** Set workspaceBuildConfigId Null */
  public final void setWorkspaceBuildConfigIdNull() {

    this.workspaceBuildConfigIdNull = true;
  }

  public final void setWorkspaceBuildConfigIdNull(boolean aNullFlag) {

    this.workspaceBuildConfigIdNull = aNullFlag;
  }

  public final boolean isWorkspaceBuildConfigIdNull() {

    return this.workspaceBuildConfigIdNull;
  }

  private java.util.Date buildTime;

  /** Attribute buildTime Be Seted Falg */
  private boolean buildTimeSetted = false;

  /** Attribute buildTime is Null Falg */
  private boolean buildTimeNull = false;

  /**
   * Get buildTime
   *
   * @return java.util.Date
   */
  public final java.util.Date getBuildTime() {

    return buildTime;
  }

  /**
   * Set buildTime
   *
   * @param java.util.Date
   */
  public final void setBuildTime(java.util.Date buildTime) {

    this.buildTime = buildTime;

    this.buildTimeSetted = true;

    this.setBuildTimeNull(this.buildTime == null);
  }

  /**
   * Get buildTime Has Been Setted
   *
   * @return boolean
   */
  public final boolean isBuildTimeSetted() {
    return this.buildTimeSetted;
  }

  /** Set buildTime Null */
  public final void setBuildTimeNull() {

    this.buildTimeNull = true;
  }

  public final void setBuildTimeNull(boolean aNullFlag) {

    this.buildTimeNull = aNullFlag;
  }

  public final boolean isBuildTimeNull() {

    return this.buildTimeNull;
  }

  private String buildLog;

  /** Attribute buildLog Be Seted Falg */
  private boolean buildLogSetted = false;

  /** Attribute buildLog is Null Falg */
  private boolean buildLogNull = false;

  /**
   * Get buildLog
   *
   * @return String
   */
  public final String getBuildLog() {

    if (isBuildLogNull()) {
      return null;
    } else {
      return StringUtils.trim(buildLog);
    }
  }

  /**
   * Set buildLog
   *
   * @param String
   */
  public final void setBuildLog(String buildLog) {

    this.buildLog = StringUtils.trim(buildLog);

    this.buildLogSetted = true;

    this.setBuildLogNull(this.buildLog == null);
  }

  /**
   * Get buildLog Has Been Setted
   *
   * @return boolean
   */
  public final boolean isBuildLogSetted() {
    return this.buildLogSetted;
  }

  /** Set buildLog Null */
  public final void setBuildLogNull() {

    this.buildLogNull = true;
  }

  public final void setBuildLogNull(boolean aNullFlag) {

    this.buildLogNull = aNullFlag;
  }

  public final boolean isBuildLogNull() {

    return this.buildLogNull;
  }

  private String buildResult;

  /** Attribute buildResult Be Seted Falg */
  private boolean buildResultSetted = false;

  /** Attribute buildResult is Null Falg */
  private boolean buildResultNull = false;

  /**
   * Get buildResult
   *
   * @return String
   */
  public final String getBuildResult() {

    if (isBuildResultNull()) {
      return null;
    } else {
      return StringUtils.trim(buildResult);
    }
  }

  /**
   * Set buildResult
   *
   * @param String
   */
  public final void setBuildResult(String buildResult) {

    this.buildResult = StringUtils.trim(buildResult);

    this.buildResultSetted = true;

    this.setBuildResultNull(this.buildResult == null);
  }

  /**
   * Get buildResult Has Been Setted
   *
   * @return boolean
   */
  public final boolean isBuildResultSetted() {
    return this.buildResultSetted;
  }

  /** Set buildResult Null */
  public final void setBuildResultNull() {

    this.buildResultNull = true;
  }

  public final void setBuildResultNull(boolean aNullFlag) {

    this.buildResultNull = aNullFlag;
  }

  public final boolean isBuildResultNull() {

    return this.buildResultNull;
  }

  private String buildOutputPath;

  /** Attribute buildOutputPath Be Seted Falg */
  private boolean buildOutputPathSetted = false;

  /** Attribute buildOutputPath is Null Falg */
  private boolean buildOutputPathNull = false;

  /**
   * Get buildOutputPath
   *
   * @return String
   */
  public final String getBuildOutputPath() {

    if (isBuildOutputPathNull()) {
      return null;
    } else {
      return StringUtils.trim(buildOutputPath);
    }
  }

  /**
   * Set buildOutputPath
   *
   * @param String
   */
  public final void setBuildOutputPath(String buildOutputPath) {

    this.buildOutputPath = StringUtils.trim(buildOutputPath);

    this.buildOutputPathSetted = true;

    this.setBuildOutputPathNull(this.buildOutputPath == null);
  }

  /**
   * Get buildOutputPath Has Been Setted
   *
   * @return boolean
   */
  public final boolean isBuildOutputPathSetted() {
    return this.buildOutputPathSetted;
  }

  /** Set buildOutputPath Null */
  public final void setBuildOutputPathNull() {

    this.buildOutputPathNull = true;
  }

  public final void setBuildOutputPathNull(boolean aNullFlag) {

    this.buildOutputPathNull = aNullFlag;
  }

  public final boolean isBuildOutputPathNull() {

    return this.buildOutputPathNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  private String productionName;

  /** Attribute productionName Be Seted Falg */
  private boolean productionNameSetted = false;

  /** Attribute productionName is Null Falg */
  private boolean productionNameNull = false;

  /**
   * Get productionName
   *
   * @return String
   */
  public final String getProductionName() {

    if (isProductionNameNull()) {
      return null;
    } else {
      return StringUtils.trim(productionName);
    }
  }

  /**
   * Set productionName
   *
   * @param String
   */
  public final void setProductionName(String productionName) {

    this.productionName = StringUtils.trim(productionName);

    this.productionNameSetted = true;

    this.setProductionNameNull(this.productionName == null);
  }

  /**
   * Get productionName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isProductionNameSetted() {
    return this.productionNameSetted;
  }

  /** Set productionName Null */
  public final void setProductionNameNull() {

    this.productionNameNull = true;
  }

  public final void setProductionNameNull(boolean aNullFlag) {

    this.productionNameNull = aNullFlag;
  }

  public final boolean isProductionNameNull() {

    return this.productionNameNull;
  }

  private String productionType;

  /** Attribute productionType Be Seted Falg */
  private boolean productionTypeSetted = false;

  /** Attribute productionType is Null Falg */
  private boolean productionTypeNull = false;

  /**
   * Get productionType
   *
   * @return String
   */
  public final String getProductionType() {

    if (isProductionTypeNull()) {
      return null;
    } else {
      return StringUtils.trim(productionType);
    }
  }

  /**
   * Set productionType
   *
   * @param String
   */
  public final void setProductionType(String productionType) {

    this.productionType = StringUtils.trim(productionType);

    this.productionTypeSetted = true;

    this.setProductionTypeNull(this.productionType == null);
  }

  /**
   * Get productionType Has Been Setted
   *
   * @return boolean
   */
  public final boolean isProductionTypeSetted() {
    return this.productionTypeSetted;
  }

  /** Set productionType Null */
  public final void setProductionTypeNull() {

    this.productionTypeNull = true;
  }

  public final void setProductionTypeNull(boolean aNullFlag) {

    this.productionTypeNull = aNullFlag;
  }

  public final boolean isProductionTypeNull() {

    return this.productionTypeNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceBuildLog) == false) {
      return false;
    }
    WorkspaceBuildLog other = (WorkspaceBuildLog) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("productionName=");
    buffer.append(this.productionName);

    buffer.append("productionType=");
    buffer.append(this.productionType);

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("workspaceBuildConfigId=");
    buffer.append(this.workspaceBuildConfigId);

    buffer.append("buildTime=");
    buffer.append(this.buildTime);

    buffer.append("buildLog=");
    buffer.append(this.buildLog);

    buffer.append("buildResult=");
    buffer.append(this.buildResult);

    buffer.append("buildOutputPath=");
    buffer.append(this.buildOutputPath);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("]");

    return buffer.toString();
  }
}
